//import com.zq.main.Main;
//import com.zq.solr.test.service.TestSolr;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.data.solr.core.SolrTemplate;
//import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
//import org.springframework.test.context.web.WebAppConfiguration;
//
///**
// * Created by system.out on 2017/3/16.
// */
//@RunWith(SpringJUnit4ClassRunner.class)
//@SpringBootTest(classes = Main.class)
//@WebAppConfiguration
//public class SolrService {
//    private SolrTemplate solrTemplate;
//    public void test(){
//        TestSolr test = new TestSolr();
//        test.setPassword("123456");
//        test.setUsername("username1");
//        test.setId(1);
//        solrTemplate.saveBean(test).getStatus();
//        solrTemplate.commit();
//    }
//}
